<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <base href="">
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge">
    <title>b2b-首页</title>
    <meta name="description" content="s">
    <meta name="keywords" content="s">


    <link rel="stylesheet" href="/assets/b2b/css/themes/common.css">
    <link rel="stylesheet" href="/assets/b2b/css/themes/reset.css">

    <link rel="stylesheet" href="/assets/b2b/css/font-awesome.min.css">
    <!--[if IE 7]>
    <link rel="stylesheet" href="/assets/b2b/css/font-awesome-ie7.min.css">
    <![endif]-->
    <link rel="stylesheet" href="/assets/b2b/css/hougub2b.css">
    <link rel="stylesheet" href="/assets/b2b/css/jquery-ui.min.css">
    <script src="/assets/b2b/js/libs/jquery-1.11.3.min.js"></script>
    <link rel="stylesheet" href="/assets/b2b/css/ui-dialog.css">
    <style>
        #myform label.error {
            position: absolute;
            left: 100px;
            top: 32px;
            cursor: text;
        }

    </style>
    <script>
        var COMM_DATA = {
            csrfToken: "{{ csrf_token() }}",
            webObj: {
                createid: "{{ Auth::check() ? Auth::user()->class : '' }}",
            },

            topObj: {
                userid: "{{ Auth::check() ? Auth::user()->id : '' }}",
                logout_href: "{{ route('custom.logout') }}",
                issue1_href: "{{route('account.offer.create')}}",
                issue2_href: "{{route('account.enquiry.create')}}",
                loginFlag: "{{ Auth::check() ? 1 : 0 }}", // 0：未登录， 1：已登录
                welcome_txt: "{{\App\B2BProject\Custom\SiteSetting::findOrFail(1)->name}}",
                user_type: "{{ Auth::user() ? Auth::user()->class - 1 : '' }}",
                login_href: "{{ route('custom.login') }}",
                register_href: "{{  route('custom.login') }}",
                username: "{{ Auth::check() ? Auth::user()->user : '' }}",
                order_href: "{{ Auth::check()?Auth::user()->class == 2 ? route('account.purchaser.order.index'):route('account.provider.order.index'):''}}",
                buyer_center_href: "{{ route('account.member.home') }}",
                cart_href: "{{route('cart.cart-list')}}",
            },


            searchObj: $.parseJSON('{!! $heartData !!}'),
            mainNavObj: [{
                href_val: "{{route('host')}}",
                href_txt: "首页",
                new_flag: false
            }, {
                href_val: "{{route('free.list')}}",
                href_txt: "自由集散区",
                new_flag: false
            }, {
                href_val: "{{route('distribution.list')}}",
                href_txt: "供采分销区",
                new_flag: false
            }, {
                href_val: "{{route('provider.list')}}",
                href_txt: "供应报盘",
                new_flag: false
            }, {
                href_val: "{{route('purchaser.list')}}",
                href_txt: "采购询盘",
                new_flag: false
            }, {
                href_val: "{{route('merchant.index')}}",
                href_txt: "商家中心",
                new_flag: false
            }, {
                href_val: "{{ route('industry') }}",
                href_txt: "行业资讯",
                new_flag: false
            }, {
                href_val: "{{route('logistics.index')}}",
                href_txt: "物流服务",
                new_flag: true
            }, {
                href_val: "{{route('financial.index')}}",
                href_txt: "金融服务",
                new_flag: true
            }
            ],


            footNavObj: $.parseJSON('{!! $helpData !!}'),
            bottomObj: $.parseJSON('{!! $bottomData !!}'),
        };
    </script>
</head>
<body>

<!-- top_test -->
<div id="top_test"></div>

<!-- web_logo_search -->
<div id="web_logo_search"></div>

<!-- comm_nav -->
<div id="comm_nav"></div>

<div class="com-w mt20">
    <div class="wrapper clearfix">
        <div class="com-info-box w400-box h400-box mr20">
            <div class="head">
                <div class="text-left">价格行情</div>
                <div class="text-right">
                    <a href="{{ route('industry.lister',['jghq']) }}">更多></a>
                </div>
            </div>
            <div class="main">
                <div class="main-graph" id="main-price">这里放曲线图</div>
                <div class="main-li">
                    <ul class="info-content-date">
                        @foreach(\App\B2BProject\Site\ArticleCategory::getArticleCollectionByCategoryName('jghq')->orderBy('created_at', 'desc')->take(5)->get() as $article)
                            <li class="active">
                                <a class="main-li-text" href="{{route('industry.details',['jghq', $article->id])}}"><i
                                            class="icon-circle"></i>{{ $article->title }}</a>
                                <span class="li-time">{{ date('Y-m-d', strtotime($article->created_at)) }}</span>
                            </li>
                        @endforeach
                    </ul>
                </div>
            </div>
        </div>
        <div class="com-info-box w400-box h400-box mr20 border-none">
            <div class="main-1-image">
                <?php $imageArticle =
                        \App\B2BProject\Site\ArticleCategory::getArticleCollectionByCategoryName('hyxw')->collectionWithCover()->first(); ?>
                <a href="{{route('industry.details',['hyxw', $imageArticle->id])}}">
                    <img src="{{$imageArticle->cover}}">

                    <div class="text-hover">
                        <p class="">{{$imageArticle->title}}</p>
                    </div>
                </a>
            </div>

            <div class="com-info-box-text">
                <ul class="info-content-date">
                    @foreach(\App\B2BProject\Site\ArticleCategory::getArticleCollectionByCategoryName('hyxw')->orderBy('created_at', 'desc')->take(5)->get() as $article)
                        <li>
                            <a class="text-title" href="{{route('industry.details',['hyxw', $article->id])}}"><i
                                        class="icon-circle"></i>{{$article->title}}</a>
                            <span class="li-time">{{date('Y-m-d',strtotime($article->created_at))}}</span>
                        </li>
                    @endforeach
                </ul>

            </div>
        </div>
        <div class="com-info-box w360-box h400-box border-top border-none">
            <div class="info-top">
                <div class="com-info-box-top">采购商入驻流程</div>
                <div class="com-info-box-bg"><img src="/assets/b2b/css/images/index-1.jpg"></div>
                <div class="com-info-box-top">供应商入驻流程</div>
                <div class="com-info-box-bg"><img src="/assets/b2b/css/images/index-2.jpg"></div>
                <div class="com-info-box-btn">
                    <a href="{{ route('register.provider') }}" class="gbtn">供应商入驻</a>
                    <a href="{{ route('register.purchaser') }}" class="cbtn">采购商入驻</a>
                </div>
                <div class="com-info-box-info ">
                    <a href="javascript:void(0)" class="info-left">发布供应信息</a>
                    |
                    <a href="javascript:void(0)" class="info-right">发布求购信息</a>
                </div>
            </div>
            <div class="info-bottom">
                <div class="right-img">
                    <a href="javascript:void(0)">
                        <img src="/assets/b2b/css/images/right-1.jpg"></a>
                </div>

            </div>
        </div>
    </div>
</div>
<div style="display: none" id="supply_bott" code=""></div>
<div class="com-w mt20">
    <div class="wrapper clearfix">
        <div id="tab-nav-1" class="com-info-box w820-box h360-box mr18">
            <div class="head clear">
                <div class="text-left clear-m">
                    <a class="tab-head tab-supply active">最新供应</a>
                    <a class="tab-head tab-buy">最新求购</a>
                </div>
                {{-- <div class="text-right ">
                     <a href="#">更多></a>
                 </div>--}}
            </div>

            <div>
                <div class="tab-supply-ul" id="tab-supply">
                    <ul class="clearfix">
                        <li>产品</li>
                        <li>价格</li>
                        <li>数量</li>
                        <li>起订量</li>
                        <li>发布日期</li>
                        <li>地区</li>
                        <li></li>
                    </ul>
                    @foreach(\App\B2BProject\Custom\Provider\Offer::getLatestOffer() as $offer)
                        <ul class="product clearfix">
                            <li class="product-name">{{ $offer->title }}</li>
                            <li class="product-money">￥{{ $offer->price }}</li>
                            <li class="product-moq">{{ $offer->amount }} {{ $offer->unit }}</li>
                            <li class="product-number">{{ $offer->minimum_order }} {{ $offer->unit }}</li>
                            <li class="product-release-date">{{ date('Y-m-d', strtotime($offer->created_at)) }}</li>
                            <li class="product-dress">{{ \App\B2BProject\Area::getName($offer->province_id) }} {{ \App\B2BProject\Area::getName($offer->city_id) }}</li>
                            <li>
                                <a href="javascript:void(0)" class="product-enquiry sel-supply-btn"
                                   code="{{$offer->id}}" maxSupply="{{$offer->amount}}">询盘</a>
                            </li>
                        </ul>
                    @endforeach
                </div>
                <div class="tab-supply-ul" id="tab-buy" style="display: none">
                    <ul class="clearfix">
                        <li class="wb25">产品</li>
                        <li class="wb15">价格</li>
                        <li class="wb15">数量</li>
                        <li class="wb10">发布日期</li>
                        <li class="wb15">地区</li>
                        <li class="wb20"></li>
                    </ul>
                    @foreach(\App\B2BProject\Custom\Purchaser\Enquiry::getLatestEnquiry() as $enquiry)
                        <ul class="product clearfix">
                            <li class="wb25">{{ $enquiry->title }}</li>
                            <li class="wb15">￥{{ $enquiry->price }}</li>
                            <li class="wb15">{{ $enquiry->amount }} {{ $enquiry->unit }}</li>
                            <li class="wb10">{{ date('Y-m-d', strtotime($enquiry->created_at)) }}</li>
                            <li class="wb15">{{ \App\B2BProject\Area::getName($enquiry->province_id) }} {{ \App\B2BProject\Area::getName($enquiry->city_id) }}</li>
                            <li class="wb20">
                                <a href="javascript:void(0)" class="product-enquiry1 product-enquiry"
                                   code="{{$enquiry->id}}" maxSupply="{{$enquiry->amount}}">报盘</a>
                            </li>
                        </ul>
                    @endforeach
                </div>
            </div>
        </div>
        <div class="com-info-box w360-box h360-box">
            <div class="head">
                <div class="text-left">热销排行</div>
                {{-- <div class="text-right">
                     <a href="#">更多></a>
                 </div>--}}
            </div>

            <?php $i = 1?>
            @foreach(\App\B2BProject\Custom\Business\Goods::HasCover()->take(5)->get() as $info)
                <div class="hot-list">
                    <a href="{{route('goods.detail',[$info->id])}}">
                        <div class="hot-list-img">
                            <img src="{{$info->cover()}}"></div>
                        @if($i<=3)
                            <div class="hot-list-number active">{{$i++}}</div>
                        @else
                            <div class="hot-list-number">{{$i++}}</div>
                        @endif
                        <div class="hot-list-name">{{$info->name}}</div>
                        <div class="hot-list-money">{{$info->original_price}}</div>
                        <div class="hot-list-dress">
                            {{\App\B2BProject\Area::getName($info->province_id)}}{{\App\B2BProject\Area::getName($info->city_id)}}
                        </div>
                    </a>
                </div>
            @endforeach

        </div>
    </div>
</div>

<div class="com-w mt20">
    <div class="wrapper clearfix">
        <div class="com-info-box w1200-box h360-box mr20 h493">
            <div class="head clear">
                <div class="text-left">产品分类</div>

            </div>
            <?php $i = 2;?>
            @foreach(\App\B2BProject\Custom\Business\GoodsCategory::GlobalCategory()->get()->chunk(3) as $MasterCollection)
                @if($i%2==0)
                    <div class="product-list1 clearfix">
                        @else
                            <div class="product-list1 clearfix" style="background-color: #f7f1eb">
                                @endif
                                @foreach($MasterCollection as $master)
                                    <div class="product-classify">
                                        <div class="product-classify-main">
                                            <span class="classify-main-title">{{ $master->name }}</span>
                                            <ul class="classify-main-text clearfix mb10">
                                                @foreach($master->children()->where('display', true)->get() as $child)
                                                    <li>
                                                        <a href="{{route('free.choose',['cid'=>$child->id,'pid'=>$master->id])}}">{{ $child->name }}</a>
                                                    </li>
                                                @endforeach
                                            </ul>
                                        </div>
                                    </div>
                                @endforeach
                            </div>
                            <?php $i++;?>
                            @endforeach
                    </div>
        </div>
    </div>

    <div class="com-w mt20">
        <div class="wrapper clearfix">
            <div class="com-info-box w820-box h560-box mr20">
                <div class="head clear">
                    <div class="text-left" style="width: 93%">
                        <span class="hot-pro">自由集散区热销产品</span>
                        <ul class="hot-pro-name">
                            @foreach(\App\B2BProject\Custom\Business\GoodsCategory::where('parent_id','!=','0')->orderBy('sort', 'desc')->take(5)->get() as $category)
                                <li>
                                    <a href="{{route('free.choose',['cid'=>$category->id,'pid'=>$category->parent_id])}}">{{$category->name}}</a>
                                </li>
                            @endforeach

                        </ul>
                    </div>
                    <div class="text-right">
                        <a href="{{route('free.list')}}">更多></a>
                    </div>
                </div>
                @foreach(\App\B2BProject\Custom\Business\Goods::display()->where('grant_status', false)->orderBy('created_at', 'desc')->take(10)->get() as $good)
                    <div class="hot-pro-main">
                        <div class="pro-main-img">
                            <a href="{{route('goods.detail',[$good->id])}}">
                                <img src="{{ $good->goodsImage->first() ->image}}">
                            </a>
                        </div>
                        <div class="pro-main-title">
                            <a href="{{route('goods.detail',[$good->id])}}" title="{{$good->name}}">
                                {{$good->name}}
                            </a>
                        </div>
                        <div class="pro-main-bottom">
                            <div class="main-bottom-left">￥{{ $good->original_price }}</div>
                            <div class="main-bottom-right">
                                <span>{{ \App\B2BProject\Area::getName($good->province_id) }}</span>
                                <span>{{ \App\B2BProject\Area::getName($good->city_id) }}</span></div>
                        </div>
                    </div>
                @endforeach
            </div>

            <div class="com-info-box w360-box h560-box">
                <div class="head clear">
                    <div class="text-left">热门企业</div>
                    <div class="text-right">
                        <a href="{{route('merchant.index')}}">更多></a>
                    </div>
                </div>
                <?php
                $introduceTexts = include(base_path('public/assets/b2b/heart.php'))
                ?>
                @foreach(\App\B2BProject\Custom\MerchantRecommend::where('logo','!=','')->where('column',1)->orderBy('created_at',
                'desc')->take(8)->get() as $merchant)
                    <div class="hot-company">
                        <div class="hot-company-logo">
                            <a href="{{ $merchant->addr}}">
                                <img src="{{ $merchant->logo }}">
                            </a>
                        </div>
                        <div class="hot-company-name">
                            <a href="{{$merchant->addr}}">
                                {{$merchant->name}}
                            </a>
                        </div>
                        <div class="hot-company-text">
                            {{ $merchant->description }}
                        </div>
                    </div>
                @endforeach
            </div>
        </div>
    </div>

    <div class="com-w mt20">
        <div class="wrapper clearfix">
            <div class="com-info-box w1200-box h220-box">
                <div class="head clear">
                    <div class="text-left">品牌展示</div>
                    {{--<div class="text-right">
                        <a href="#">更多></a>
                    </div>--}}
                </div>

                <div class="clearfix">
                    @foreach(\App\B2BProject\Custom\Business\Brand::display()->recommend()->take(12)->get() as $brand)
                        <div class="logo-show">
                            <a href="{{route('merchant.index',['brand_id'=>$brand->id])}}">
                                <img src="{{ $brand->logo }}" alt="{{ $brand->name }}"/>
                            </a>
                        </div>
                    @endforeach
                </div>
            </div>
        </div>
    </div>

    <div class="com-w mt20">
        <div class="wrapper clearfix">
            <div class="com-info-box w820-box h490-box mr20">
                <div class="head clear">
                    <div class="text-left">招商加盟</div>
                    <div class="text-right">
                        <a href="{{route('merchant.index')}}">更多></a>
                    </div>
                </div>

                <div class="clearfix oh" style="height: 453px;">
                    @foreach(\App\B2BProject\Custom\MerchantRecommend::where('logo','!=','')->where('column',2)->orderBy('created_at',
                'desc')->take(8)->get() as $merchant)
                        <div class="trade-join-info">
                            <div class="img-box">
                                <a href="{{$merchant->addr}}"><img src="{{ $merchant->logo }}"/></a>
                            </div>
                            <div class="text-box">
                                <a class="company-name txt-oh"
                                   href="{{$merchant->addr}}">{{ $merchant->name }}</a>

                                <p><span>主营产品 ：</span>
                                        <span class="item">{{ $merchant->description }}</span>
                                </p>
                            </div>
                        </div>
                    @endforeach
                </div>
            </div>

            <div class="com-info-box w360-box h490-box">
                <div class="head clear">
                    <div class="text-left">物流公司</div>
                    {{-- <div class="text-right">
                         <a href="#">更多></a>
                     </div>--}}
                </div>

                <div class="logistics">
                    <div class="logistics-top">
                         @foreach(\App\B2BProject\Custom\LogisticsCompany::orderBy('created_at',
                'desc')->take(2)->get() as $logistics)
                        <div class="uc">
                            <a href="{{$logistics->addr}}">
                                <img src="{{$logistics->logo}}">
                            </a>
                        </div>
                        @endforeach
                    </div>
                    <div class="logistics-text">
                        询价找车
                    </div>
                    <div class="logistics-bg">

                    </div>
                    <div>
                        <form id="myform" method="post" action="">
                            <p>
                                <label for="loadposition" class="logistics-main-text">装车点：</label>
                                <input name="loadpos" id="loadposition"/>
                            </p>

                            <p>
                                <label for="unloadpos" class="logistics-main-text">卸货点：</label>
                                <input id="unloadpos" name="unloadpos"/>
                            </p>

                            <p>
                                <label for="goodsdesc" class="logistics-main-text">货物名称：</label>
                                <input id="goodsdesc" name="goodsdesc" type="text"/>
                            </p>

                            <p>
                                <label for="quantity" class="logistics-main-text">数量：</label>
                                <input id="quantity" name="quantity" type="text"/>
                            </p>

                            <p>
                                <label for="tel" class="logistics-main-text">联系电话：</label>
                                <input id="tel" type="text" name="tel"/>
                            </p>

                            <p style="margin-top: 30px;">

                            <div id="find-truck-btn"
                                 class="btn btn-warn w220x40 ml90"
                                 type="submit" value="">帮我找车
                            </div>
                            </p>
                            {{ csrf_field() }}
                        </form>
                    </div>
                    <!-- <div class="logistics-main">
                        <span class="logistics-main-text">装车点：</span><input type="text"><span class="fuhao">*</span>
                    </div>
                    <div class="logistics-main">
                        <span class="logistics-main-text">卸货点：</span><input type="text"><span class="fuhao">*</span>
                    </div>
                    <div class="logistics-main">
                        <span class="logistics-main-text">货物：</span><input type="text"><span class="fuhao">*</span>
                    </div>
                    <div class="logistics-main">
                        <span class="logistics-main-text">数量：</span><input type="text"><span class="fuhao">*</span>
                    </div>
                    <div class="logistics-main">
                        <span class="logistics-main-text">联系电话：</span><input type="text"><span class="fuhao">*</span>
                    </div>
                    <div class="logistics-main">
                        <a href="javascript:void(0)" class="find-car submit" type="submit">帮我找车</a>
                    </div> -->
                </div>
            </div>
        </div>
    </div>

    <div class="com-w mt20">
        <div class="wrapper clearfix">
            <div class="com-info-box w590-box h290-box mr20">
                <div class="head clear">
                    <div class="text-left">咖啡豆国际交易行情</div>
                    {{-- <div class="text-right">
                         <a href="#">更多></a>
                     </div>--}}
                </div>

                <div id="internationtrade" class="canvas-graph">
                </div>
            </div>

            <div class="com-info-box w590-box h290-box">
                <div class="head clear">
                    <div class="text-left">咖啡豆国内交易行情</div>
                    {{--<div class="text-right">
                        <a href="#">更多></a>
                    </div>--}}
                </div>

                <div id="domestictrade" class="canvas-graph">
                </div>
            </div>
        </div>
    </div>

    <div class="com-w mt20">
        <div class="wrapper clearfix">
            <div class="com-info-box w820-box h560-box mr20 clearfix">
                <div class="head clear">
                    <div class="text-left">行业资讯</div>
                    <div class="text-right">
                        <a href="{{ route('industry.lister',['hyzx']) }}">更多></a>
                    </div>
                </div>

                <div class="w420 mt20 ml20" style="float:left;">
                    <div class="h300 video-box">
                        <!-- 视频 -->
                        <?php $imageHyzx =
                                \App\B2BProject\Site\ArticleCategory::getArticleCollectionByCategoryName('hyzx')->collectionWithCover()->first();?>

                        <a href="{{route('industry.details',['hyzx', $imageHyzx->id])}}">
                            <img src="{{$imageHyzx->cover}}" width="300"
                                 style="position: relative;width: 100%;height: 100%;"/>
                        </a>
                    </div>

                    <div class="mt20 h160 oh">
                        <ul class="info-content-date">
                            @foreach(\App\B2BProject\Site\ArticleCategory::getArticleCollectionByCategoryName('hyzx')->orderBy('created_at', 'desc')->skip(7)->take(5)->get() as $article)
                                <li>
                                    <a href="{{route('industry.details',['hyzx', $article->id])}}">
                                        <i class="icon-circle"></i>
                                        {{$article->title}}</a>
                                    <span class="date-txt">{{ date('Y-m-d', strtotime($article->created_at)) }}</span>
                                </li>
                            @endforeach
                        </ul>
                    </div>
                </div>

                <div class="w120 mt20 ml20" style="float:left;">
                    <!-- list -->

                    @foreach(\App\B2BProject\Site\ArticleCategory::getArticleCollectionByCategoryName('hyzx')->orderBy('created_at','desc')->collectionWithCover()->skip(2)->take(5)->get() as $article)
                        <div class="trade-info-box">
                            <div class="img-box mr20">
                                <a href="{{route('industry.details',['hyzx', $article->id])}}"><img
                                            src="{{$article->cover}}"/></a>
                            </div>
                            <div class="txt-box">
                                <a class="txt-oh"
                                   href="{{route('industry.details',['hyzx', $article->id])}}">{{$article->title}}</a>

                                <p>
                                    {{substr(strip_tags($article->content),0)}}
                                    {{--{{$article->content}}--}}
                                </p>
                            </div>
                            <div class="empty-line"></div>
                        </div>
                    @endforeach
                </div>
            </div>

            <div class="com-info-box w360-box h560-box">
                <div class="head clear">
                    <div class="text-left">市场行情</div>
                    <div class="text-right">
                        <a href="{{route('industry.lister',['scdt'])}}">更多></a>
                    </div>
                </div>

                <div class="body mt20 h500">
                    <div class="img-box">
                        <?php $imageScdt =
                                \App\B2BProject\Site\ArticleCategory::getArticleCollectionByCategoryName('scdt')->orderBy('created_at',
                                        'desc')->collectionWithCover()->first();?>
                        <a href="{{route('industry.details',['scdt', $imageScdt->id])}}">
                            <img src="{{$imageScdt->cover}}"/>
                        </a>

                        <div class="txt-box">
                            <p>{{$imageScdt->title}}</p>
                        </div>
                    </div>

                    <div class="content-box">
                        <ul class="info-content-date">

                            @foreach(\App\B2BProject\Site\ArticleCategory::getArticleCollectionByCategoryName('scdt')->orderBy('created_at','desc')->collectionWithCover()->take(10)->get() as $article)
                                <li>

                                    <a href="{{route('industry.details',['scdt', $article->id])}}">
                                        <i class="icon-circle"></i>
                                        {{$article->title}}</a>
                                    <span class="date-txt">{{date('Y-m-d',strtotime($article->created_at))}}</span>
                                </li>
                            @endforeach
                        </ul>
                    </div>
                </div>


            </div>
        </div>
    </div>

    <div class="com-w mt20">
        <div class="wrapper clearfix">

            <div class="com-info-box w820-box h430-box mr20">
                <div id="tab-nav-2" class="w380 hbb oh" style="float:left;">
                    <div class="head-tab">
                        <span class="item lh45 current">国内展会</span>
                        <span class="item lh45">国际展会</span>
                    </div>

                    <div class="ml10 h370 oh">
                        <ul class="info-content-date">
                            @foreach(\App\B2BProject\Site\ArticleCategory::getArticleCollectionByCategoryName('gnzh')->orderBy('created_at','desc')->collectionWithCover()->take(10)->get() as $article)
                                <li>

                                    <a href="{{route('industry.details',['gnzh', $article->id])}}">
                                        <i class="icon-circle"></i>
                                        {{$article->title}}</a>
                                    <span class="date-txt">{{date('Y-m-d',strtotime($article->created_at))}}</span>
                                </li>
                            @endforeach
                        </ul>

                        <ul class="info-content-date" style="display: none;">
                            @foreach(\App\B2BProject\Site\ArticleCategory::getArticleCollectionByCategoryName('gjzh')->orderBy('created_at','desc')->collectionWithCover()->take(10)->get() as $article)

                                <li>

                                    <a href="{{route('industry.details',['gjzh', $article->id])}}">
                                        <i class="icon-circle"></i>
                                        {{$article->title}}</a>
                                    <span class="date-txt">{{date('Y-m-d',strtotime($article->created_at))}}</span>
                                </li>
                            @endforeach
                        </ul>

                    </div>

                </div>


                <div class="exhibit-img-box">
                    <a class="link-img">
                        <img src="/assets/b2b/css/images/exhibition1.jpg"/>
                    </a>
                </div>
                <div class="exhibit-img-box">
                    <a class="link-img">
                        <img src="/assets/b2b/css/images/exhibition2.jpg"/>
                    </a>
                </div>
                <div class="exhibit-img-box">
                    <a class="link-img">
                        <img src="/assets/b2b/css/images/exhibition3.jpg"/>
                    </a>
                </div>
                <div class="exhibit-img-box">
                    <a class="link-img">
                        <img src="/assets/b2b/css/images/exhibition4.jpg"/>
                    </a>
                </div>

            </div>
            <div class="com-info-box w360-box h430-box">
                <div class="head clear">
                    <div class="text-left">企业动态</div>
                    <div class="text-right">
                        <a href="{{ route('industry.lister',['qydt']) }}">更多></a>
                    </div>
                </div>

                <div class="body mt20 h350">
                    <div class="img-box">
                        <?php $imageQydt =
                                \App\B2BProject\Site\ArticleCategory::getArticleCollectionByCategoryName('qydt')->orderBy('created_at',
                                        'desc')->collectionWithCover()->first();?>
                        <a href="{{route('industry.details',['qydt', $imageQydt->id])}}">
                            <img src="{{$imageQydt->cover}}"/>
                        </a>

                        <div class="txt-box">
                            <p>{{$imageQydt->title}}</p>
                        </div>

                    </div>

                    <div class="content-box">
                        <ul class="info-content-date">
                            @foreach(\App\B2BProject\Site\ArticleCategory::getArticleCollectionByCategoryName('qydt')->orderBy('created_at','desc')->collectionWithCover()->take(10)->get() as $article)
                                <li>

                                    <a href="{{route('industry.details',['qydt', $article->id])}}">
                                        <i class="icon-circle"></i>
                                        {{$article->title}}</a>
                                    <span class="date-txt">{{date('Y-m-d',strtotime($article->created_at))}}</span>
                                </li>
                            @endforeach
                        </ul>
                    </div>

                </div>
            </div>

        </div>
    </div>

    <div class="com-w mt20">
        <div class="wrapper clearfix">

            <div class="com-info-box w1200-box h150-box">
                <a href="#" class="link-img">
                    <img src="/assets/b2b/css/images/benner.jpg"/>
                </a>
            </div>

        </div>
    </div>

    <div class="com-w mt20">
        <div class="wrapper clearfix">

            <div class="com-info-box w1200-box h80-box">
                <div class="out-web-link">
                    <span class="key-txt fl" style="height: 80px;line-height: 80px;">战略合作 ：</span>
                    <ul class="fl clearfix">
                        <li>
                            <a href="www.coffee000.com"><img src="/assets/b2b/css/images/cqnt.png"></a>
                        </li>
                        <li>
                            <a href="#"><img src="/assets/b2b/css/images/hgck.png"></a>
                        </li>
                        <li>
                            <a href="#"><img src="/assets/b2b/css/images/ckzy.png"></a>
                        </li>
                    </ul>

                </div>
            </div>

        </div>
    </div>

    <!-- foot_nav -->
    <div id="foot_nav"></div>
    <div id="bottom_main"></div>


    <!-- JS -->
    <script type="text/template" id="supply_offer_templ">
        <!-- 询盘弹出框的模版 -->
        <form id="supper_offer_sub" method="post" action="{{route('provider.save')}}" code="">
            <input type="hidden" value="{{csrf_token()}}" name="_token">

            <div class="dialog-div">
                <div class="enquiry-input1 enquiry">
                    <input type="text" placeholder="请输入采购数量" name="amount">
                    <span class="f14 c-999 ml10">单位：件</span>
                    <input id="offer_id" name="offer_id" style="display: none" type="text" value="">
                    <input id="max_offer" name="max_offer" style="display: none" type="text" value="">
                </div>
                <div class="enquiry-select mt10 enquiry">
                    <select id="province" name="province_id"></select>
                    <select id="city" name="city_id"></select>
                    <select id="county" name="county_id"></select>
                </div>
                <div class="enquiry-input mt10 enquiry">
                    <input type="text" placeholder="请输入联系人姓名" name="contact_name"></div>
                <div class="enquiry-input mt10 enquiry">
                    <input type="text" placeholder="请输入联系人手机号码" name="contact_phone"></div>
                <div class="tc mt15">
                    <input type="submit" value="询盘" class="btn btn-warn btn-w140x40 lh25" id="inquiry"></div>
                <div class="b002 lh32 mt10" style="width:340px;overflow:hidden">提示：</div>
            </div>
        </form>
    </script>
    <!-- 报盘弹出框的模版 -->
    <script type="text/template" id="supply_offer_templ1">
        <form id="supper_offer_sub1" method="post" action="{{route('purchaser.save')}}">
            <input type="hidden" value="{{csrf_token()}}" name="_token">

            <div class="dialog-div">
                <div class="clearfix error_place enquiry1">
                    <div class="offer-l fl lh32 f14 w70 tr">价格</div>
                    <div class="offer-r fl ml10">
                        <input type="text" name="price">
                        <span class="ml10 f14 lh32">元/件</span>
                    </div>
                </div>
                <div class="clearfix" style="display: none">
                    <input type="text" value="" id="enquiry_id" name="enquiry_id" style="display: none;">
                    <input type="text" value="" id="max_enquiry" name="max_enquiry" style="display: none;"></div>
                <div class="clearfix mt10 error_place enquiry1">
                    <div class="offer-l fl lh32 f14 w70 tr ">数量</div>
                    <div class="offer-r fl ml10">
                        <input type="text" name="amount"></div>
                </div>
                <div class="clearfix mt10 error_place enquiry1">
                    <div class="offer-l fl lh32 f14 w70 tr ">地区</div>
                    <div class="offer-r fl ml10">
                        <select name="province" id="province"></select>
                        <select name="city" id="city"></select>
                        <select name="county" id="county"></select>
                    </div>
                </div>
                <div class="clearfix mt10 error_place enquiry1">
                    <div class="offer-l fl lh32 f14 tr w70 ">联系人</div>
                    <div class="offer-r fl ml10">
                        <input type="text" name="contact_name"></div>
                </div>
                <div class="clearfix mt10 error_place enquiry1">
                    <div class="offer-l fl lh32 f14 tr w70 tr">联系电话</div>
                    <div class="offer-r fl ml10 tl">
                        <input type="text" name="contact_phone"></div>
                </div>
                <div class="tc mt15">
                    <input type="submit" class="btn btn-warn btn-w140x40 lh25 enquiry" id="offer_btn" value="报盘"></div>
                <div class="b002 lh32 " style="width:340px;overflow:hidden">提示：以上为均填项</div>
            </div>
        </form>
    </script>
    <!-- 地区模版 -->
    <script type="text/template" id="addr-option-templ">
        <option value="">请选择</option>
        <% _.each(obj, function(item){ %>
        <option value="<%=item.code %>">
            <%=item.text %></option>
        <% }); %>
    </script>


    <script src="/assets/b2b/js/pageConfig.js"></script>
    <script src="/assets/b2b/js/libs/jquery-ui.min.js"></script>
    <script src="/assets/b2b/js/libs/jquery.validate.min.js"></script>
    <script src="/assets/b2b/js/libs/messages_zh.js"></script>
    <script src="/assets/b2b/js/libs/underscore-min.js"></script>

    <script src="/assets/b2b/js/libs/additional-methods.min.js"></script>
    <script src="/assets/b2b/js/libs/underscore-min.js"></script>

    <script src="/assets/b2b/js/libs/echarts.js"></script>
    <script src="/assets/b2b/js/libs/chart/k.js"></script>
    <script src="/assets/b2b/js/libs/chart/line.js"></script>

    <script src="/assets/b2b/js/libs/page/template-util.js"></script>
    <script src="/assets/b2b/js/libs/page/common.plugin.js"></script>

    <script src="/assets/b2b/js/pageModules/buyer/index.js"></script>
    <script type="text/javascript" src="/assets/b2b/js/libs/dialog-min.js"></script>

</body>

</html>